class Driver_evaluationFormModel extends Backbone.Model
    url: '/mytable/getModel?s=table.creators.Driver_evaluationTable'
    initialize: (options) =>
        @fetch()
   
#--------------------------------------------------controler
class Driver_evaluationsApp
    search: =>
        myapp.mainRegion.close() 
        mymodel = new Driver_evaluationFormModel
        @layout = new ModelMainLayout(model: mymodel)
        myapp.mainRegion.show(@layout)

            

#--------------------------------------------------router
class Driver_evaluationsAppRouter extends Backbone.Marionette.AppRouter
    appRoutes: 
        "driver_evaluations": "search"

                
myapp.addInitializer -> 
    myapp.Driver_evaluations_app = new Driver_evaluationsApp()
    myapp.Driver_evaluations_app.router = new Driver_evaluationsAppRouter controller: myapp.Driver_evaluations_app

myapp.vent.trigger("routing:started")
